program ss;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, memdslaz, sqlite3laz, laz_fpspreadsheet, zcomponent, main, storehouses,
  nomenclature, nomenclaturecreateeditgroup, nomenclaturecreateedit,
  counterparties, counterpartiescreateedit, counterpartiescreateeditgroup,
  cominginvoiceelement, cominginvoiceslist, nomenclatureselect,
  counterpartiesselect, outputinvoiceslist, storehouseselect,
  outputinvoiceselement, reportslist, supply, returngoodstosupplierelement,
  tests, trade, groupselect, settings, login, pricelist, lazreportpdfexport,
  history;

{$R *.res}

begin
  RequireDerivedFormResource := True;
  Application.Initialize;
  Application.CreateForm(TFrmMain, FrmMain);
  Application.CreateForm(TfrmStoreHouses, frmStoreHouses);
  Application.CreateForm(TfrmNomenclature, frmNomenclature);
  Application.CreateForm(TfrmNomenclatureCreateEditGroup, 
    frmNomenclatureCreateEditGroup);
  Application.CreateForm(TfrmNomenclatureCreateEdit, frmNomenclatureCreateEdit);
  Application.CreateForm(TfrmCounterParties, frmCounterParties);
  Application.CreateForm(TfrmCounterPartiesCreateEdit, 
    frmCounterPartiesCreateEdit);
  Application.CreateForm(TFrmCounterPartiesCreateEditGroup, 
    FrmCounterPartiesCreateEditGroup);
  Application.CreateForm(TfrmComingInvoiceElement, frmComingInvoiceElement);
  Application.CreateForm(TfrmComingInvoicesList, frmComingInvoicesList);
  Application.CreateForm(TfrmNomenclatureSelect, frmNomenclatureSelect);
  Application.CreateForm(TfrmCounterPartiesSelect, frmCounterPartiesSelect);
  Application.CreateForm(TfrmOutPutInvoicesList, frmOutPutInvoicesList);
  Application.CreateForm(TfrmStoreHouseSelect, frmStoreHouseSelect);
  Application.CreateForm(TfrmOutputInvoicesElement, frmOutputInvoicesElement);
  Application.CreateForm(TfrmReportsList, frmReportsList);
  Application.CreateForm(TfrmSupply, frmSupply);
  Application.CreateForm(TfrmReturnGoodsToSupplierElement, 
    frmReturnGoodsToSupplierElement);
  Application.CreateForm(TfrmTests, frmTests);
  Application.CreateForm(TfrmTrade, frmTrade);
  Application.CreateForm(TfrmGroupSelect, frmGroupSelect);
  Application.CreateForm(TfrmSettings, frmSettings);
  Application.CreateForm(TfrmLogin, frmLogin);
  Application.CreateForm(TfrmPriceList, frmPriceList);
  Application.CreateForm(TfrmHistory, frmHistory);
  Application.Run;
end.

